<html lang="zh-CN" style="font-size: 55.2px;" class="translated-ltr">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0">
    <meta name="full-screen" content="yes">
    <meta name="browsermode" content="application">
    <link rel="icon" href="favicon.ico">
    <title>Welcome Indeed Mall</title>
    <link rel="stylesheet" href="/statics/css/base.css">
    <link href="/statics/css/chunk-vendors.c3991080.css" rel="stylesheet">
    <link href="/statics/css/app.bad77f0c.css" rel="stylesheet">
    <script src="/static/jquery-3.5.0.min.js"></script>
    <link rel="stylesheet" href="/static/index/css/common.css">
    <script src="/static/layer/layer.js"></script>
</head>

<body class="van-overflow-hidden">
    <style>
        #loadingContainer {
            position: fixed;
            width: 100%;
            height: 100%;
            z-index: 999999;
            background: #ffffff;
            display: none;
        }

        .van-cell__title {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
    </style>
    <div id="loadingContainer" style="display: none;">
        <div style="display: flex;align-items: center;justify-content: center;height: 100%;"><span>
                <font style="vertical-align: inherit;">
                    <font style="vertical-align: inherit;">加载中..</font>
                </font>
            </span></div>
    </div>
    <div id="app">
        {present name="$is_card"}
        <input type="hidden" id="card" value="{$is_card}">
        {/present}
        <div data-v-4fa27633="" class="home">
            <div data-v-985d0156="" data-v-4fa27633="" class="withdraw">
                <div data-v-653af513="" data-v-985d0156="" class="com-nav">
                    <i data-v-653af513=""
                        class="leftIcon van-icon van-icon-arrow-left" style="font-size: 22px;" onclick="history.go(-1)">
                    </i>
                    <div data-v-653af513="" class="title">
                        <font style="vertical-align: inherit;">
                            <font style="vertical-align: inherit;">提现</font>
                        </font>
                    </div>
                </div>
                <div data-v-985d0156="" class="withdrawContainer">
                    <div data-v-985d0156="" class="balance">
                        <div data-v-985d0156="" class="balance-card">
                            <div data-v-985d0156="" class="current-balance">
                                当前余额
                            </div>
                            <div data-v-985d0156="" class="money">
                                {$user_info.balance}
                            </div>
                            <div data-v-985d0156="" class="withDrawMoney"></div>
                            <div data-v-985d0156="" class="rate">
                                <font style="vertical-align: inherit;">
                                    <font style="vertical-align: inherit;">提现手续费：{$service_tx}%</font>
                                </font>
                            </div>
                            <div data-v-985d0156="" class="rate Single">
                                <font style="vertical-align: inherit;">
                                    <font style="vertical-align: inherit;">最低费用：{$min_money}</font>
                                </font>
                            </div>
                        </div>
                    </div>
                    <div data-v-985d0156="" class="main">
                        <div data-v-985d0156="" class="title">
                            <font style="vertical-align: inherit;">
                                <font style="vertical-align: inherit;">输入提款金额</font>
                            </font>
                        </div>
                        <div data-v-985d0156="" class="input">
                            <div data-v-985d0156="" class="amountInput">
                                <section data-v-985d0156=""><span data-v-985d0156="" class="symbol">
                                        S/.
                                    </span>
                                    <div data-v-985d0156="" class="amt-input-item">
                                        <div data-v-985d0156="" class="am-list-line">
                                            <input style="width:100%;border:none;" name="money" id="money"
                                                maxlength="140" step="0.000000000000000001" enterkeyhint="done"
                                                pattern="[0-9]*" autocomplete="off" type="number"
                                                class="uni-input-input" placeholder="0.00">
                                        </div>
                                    </div>
                                </section>
                            </div>
                        </div>
                        <div data-v-985d0156="" class="tip">
                            <div data-v-985d0156="">
                                手续费：
                                <span id="actual_money">0.00</span>
                            </div>
                            <div data-v-985d0156="" style="color: rgb(216, 193, 142);" class="all">
                                所有余额
                            </div>
                        </div>
                    </div>

                    <div data-v-985d0156="" class="bank-info" style="display:none;">
                        <div data-v-985d0156="" class="van-cell">
                            <div data-v-985d0156="" class="van-cell__title">
                                <span data-v-985d0156="">
                                    PIX 帐户
                                </span>
                            </div>
                            <i data-v-985d0156="" class="right-icon van-icon van-icon-exchange"
                                style="font-size: 24px;">
                            </i>
                        </div>
                    </div>
                    <div data-v-985d0156="" class="bank-info">
                        <div data-v-985d0156="" class="van-cell-group van-hairline--top-bottom">
                            <div data-v-985d0156="" class="van-cell">
                                <div data-v-985d0156="" class="van-cell__title">
                                    <span data-v-985d0156="">
                                        银行
                                    </span>
                                    <span>
                                        <select style="border: none;" id="bankselect">

    <option value="PEN1143">Banco de Credito de Peru (BCP)</option>
    <option value="PEN1554">Scotiabank</option>
    <option value="PEN1555">Interbank</option>
    <option value="PEN1556">BBVA Continental</option>
    <option value="PEN1600">Banco Interamericano de Finanzas</option>
    <option value="PEN1601">Banco GNB</option>
    <option value="PEN1602">Banco de Comercio</option>
    <option value="PEN1604">Banco CrediScotia)</option>
    <option value="PEN1605">Banco de la Nacion</option>
    <option value="PEN1606">Banco Falabella</option>
    <option value="PEN1607">Banco Pichincha (formally Banco Financiero)</option>
    <option value="PEN1608">Banco Azteca</option>
    <option value="PEN1609">Banco Ripley</option>
    <option value="PEN1610">Banco MiBanco</option>
    <option value="PEN1611">Caja Sullana</option>
    <option value="PEN1612">Caja Piura</option>
    <option value="PEN1613">Caja Huancayo</option>

</select>
                                    </span>
                                </div>
                            </div>
                            <div data-v-985d0156="" class="van-cell">
                                <div data-v-985d0156="" class="van-cell__title">
                                    <span data-v-985d0156="">
                                        银行名称
                                    </span>
                                    <span>{$user_info.bank_name}</span>
                                </div>
                            </div>
                            <div data-v-985d0156="" class="van-cell">
                                <div data-v-985d0156="" class="van-cell__title">
                                    <span data-v-985d0156="">
                                        持有人名称
                                    </span>
                                    <span>{$user_info.holder_name}</span>
                                </div>
                            </div>
                            <div data-v-985d0156="" class="van-cell">
                                <div data-v-985d0156="" class="van-cell__title">
                                    <span data-v-985d0156="">
                                        账号
                                    </span>
                                    <span>{$user_info.account_number}</span>
                                </div>
                            </div>
                            <div data-v-985d0156="" class="van-cell">
                                <div data-v-985d0156="" class="van-cell__title">
                                    <span data-v-985d0156="">
                                        电话号码
                                    </span>
                                    <span>{$user_info.phone_number}</span>
                                </div>
                            </div>
                            <div data-v-985d0156="" class="van-cell">
                                <div data-v-985d0156="" class="van-cell__title">
                                    <span data-v-985d0156="">
                                        电子邮件
                                    </span>
                                    <span>{$user_info.email}</span>
                                </div>
                            </div>
                            <div data-v-985d0156="" class="van-cell">
                                <div data-v-985d0156="" class="van-cell__title">
                                    <span data-v-985d0156="">
                                        抢单交易密码
                                    </span>
                                    <span>
                                        <input style="width:100%;border:none;    text-align: right;" maxlength="6" class="jymm" type="password" name="pass" id="pass"
                                            value="" placeholder="请输入抢单交易密码" />
                                    </span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div data-v-985d0156="" class="tips">
                        <div data-v-985d0156="" style="color: rgb(38, 44, 50);">
                            <font style="vertical-align: inherit;">
                                <font style="vertical-align: inherit;">提示：</font>
                            </font>
                        </div>
                        <p data-v-985d0156="">
                            <font style="vertical-align: inherit;">
                                <font style="vertical-align: inherit;">1、请准确填写您的银行账户信息，因您的信息错误造成的资金损失，我们概不负责。</font>
                            </font>
                        </p>
                        <p data-v-985d0156="">
                            <font style="vertical-align: inherit;">
                                <font style="vertical-align: inherit;">2、次日24:00前，具体到账时间以银行为准</font>
                            </font>
                        </p>
                    </div>
                    <div data-v-985d0156="" style="padding: 0px 0.24rem;">
                        <div data-v-985d0156="" class="buttonM buttonM-active"><span data-v-985d0156=""
                                style="margin-top: 0.21rem;" class="submit pay_btn">
                                提交提款
                            </span></div>
                    </div>
                </div>
                <div data-v-985d0156="" class="van-number-keyboard van-number-keyboard--with-title"
                    style="display: none;">
                    <div class="van-number-keyboard__header">
                        <h2 class="van-number-keyboard__title">
                            <font style="vertical-align: inherit;">
                                <font style="vertical-align: inherit;">输入金额</font>
                            </font>
                        </h2>
                    </div>
                    <div class="van-number-keyboard__body">
                        <div class="van-number-keyboard__keys">
                            <div class="van-key__wrapper">
                                <div role="button" tabindex="0" class="van-key">
                                    <font style="vertical-align: inherit;">
                                        <font style="vertical-align: inherit;">1</font>
                                    </font>
                                </div>
                            </div>
                            <div class="van-key__wrapper">
                                <div role="button" tabindex="0" class="van-key">
                                    <font style="vertical-align: inherit;">
                                        <font style="vertical-align: inherit;">2</font>
                                    </font>
                                </div>
                            </div>
                            <div class="van-key__wrapper">
                                <div role="button" tabindex="0" class="van-key">
                                    <font style="vertical-align: inherit;">
                                        <font style="vertical-align: inherit;">3</font>
                                    </font>
                                </div>
                            </div>
                            <div class="van-key__wrapper">
                                <div role="button" tabindex="0" class="van-key">
                                    <font style="vertical-align: inherit;">
                                        <font style="vertical-align: inherit;">4</font>
                                    </font>
                                </div>
                            </div>
                            <div class="van-key__wrapper">
                                <div role="button" tabindex="0" class="van-key">
                                    <font style="vertical-align: inherit;">
                                        <font style="vertical-align: inherit;">5</font>
                                    </font>
                                </div>
                            </div>
                            <div class="van-key__wrapper">
                                <div role="button" tabindex="0" class="van-key">
                                    <font style="vertical-align: inherit;">
                                        <font style="vertical-align: inherit;">6</font>
                                    </font>
                                </div>
                            </div>
                            <div class="van-key__wrapper">
                                <div role="button" tabindex="0" class="van-key">
                                    <font style="vertical-align: inherit;">
                                        <font style="vertical-align: inherit;">7</font>
                                    </font>
                                </div>
                            </div>
                            <div class="van-key__wrapper">
                                <div role="button" tabindex="0" class="van-key">
                                    <font style="vertical-align: inherit;">
                                        <font style="vertical-align: inherit;">8</font>
                                    </font>
                                </div>
                            </div>
                            <div class="van-key__wrapper">
                                <div role="button" tabindex="0" class="van-key">
                                    <font style="vertical-align: inherit;">
                                        <font style="vertical-align: inherit;">9</font>
                                    </font>
                                </div>
                            </div>
                            <div class="van-key__wrapper van-key__wrapper--wider">
                                <div role="button" tabindex="0" class="van-key">
                                    <font style="vertical-align: inherit;">
                                        <font style="vertical-align: inherit;">0</font>
                                    </font>
                                </div>
                            </div>
                            <div class="van-key__wrapper">
                                <div role="button" tabindex="0" class="van-key">
                                    <font style="vertical-align: inherit;">
                                        <font style="vertical-align: inherit;">.</font>
                                    </font>
                                </div>
                            </div>
                        </div>
                        <div class="van-number-keyboard__sidebar">
                            <div class="van-key__wrapper">
                                <div role="button" tabindex="0" class="van-key van-key--large van-key--delete"><svg
                                        viewBox="0 0 32 22" xmlns="http://www.w3.org/2000/svg"
                                        class="van-key__delete-icon">
                                        <path
                                            d="M28.016 0A3.991 3.991 0 0132 3.987v14.026c0 2.2-1.787 3.987-3.98 3.987H10.382c-.509 0-.996-.206-1.374-.585L.89 13.09C.33 12.62 0 11.84 0 11.006c0-.86.325-1.62.887-2.08L9.01.585A1.936 1.936 0 0110.383 0zm0 1.947H10.368L2.24 10.28c-.224.226-.312.432-.312.73 0 .287.094.51.312.729l8.128 8.333h17.648a2.041 2.041 0 002.037-2.04V3.987c0-1.127-.915-2.04-2.037-2.04zM23.028 6a.96.96 0 01.678.292.95.95 0 01-.003 1.377l-3.342 3.348 3.326 3.333c.189.188.292.43.292.679 0 .248-.103.49-.292.679a.96.96 0 01-.678.292.959.959 0 01-.677-.292L18.99 12.36l-3.343 3.345a.96.96 0 01-.677.292.96.96 0 01-.678-.292.962.962 0 01-.292-.68c0-.248.104-.49.292-.679l3.342-3.348-3.342-3.348A.963.963 0 0114 6.971c0-.248.104-.49.292-.679A.96.96 0 0114.97 6a.96.96 0 01.677.292l3.358 3.348 3.345-3.348A.96.96 0 0123.028 6z"
                                            fill="currentColor"></path>
                                    </svg></div>
                            </div>
                            <div class="van-key__wrapper">
                                <div role="button" tabindex="0" class="van-key van-key--blue van-key--large">
                                    <font style="vertical-align: inherit;">
                                        <font style="vertical-align: inherit;">确认</font>
                                    </font>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div data-v-985d0156="" class="pwd-keyboard van-popup van-popup--round van-popup--bottom"
                    style="transition-duration: 0.1s; display: none;">
                    <div data-v-985d0156="" class="title">
                        <font style="vertical-align: inherit;">
                            <font style="vertical-align: inherit;">安全键盘</font>
                        </font>
                    </div>
                    <div data-v-985d0156="" class="van-password-input">
                        <ul data-v-985d0156="" class="van-password-input__security van-hairline--surround">
                            <li data-v-985d0156="" class="van-password-input__item van-password-input__item--focus"><i
                                    data-v-985d0156="" style="visibility: hidden;"></i>
                                <div data-v-985d0156="" class="van-password-input__cursor"></div>
                            </li>
                            <li data-v-985d0156="" class="van-hairline--left van-password-input__item"><i
                                    data-v-985d0156="" style="visibility: hidden;"></i></li>
                            <li data-v-985d0156="" class="van-hairline--left van-password-input__item"><i
                                    data-v-985d0156="" style="visibility: hidden;"></i></li>
                            <li data-v-985d0156="" class="van-hairline--left van-password-input__item"><i
                                    data-v-985d0156="" style="visibility: hidden;"></i></li>
                            <li data-v-985d0156="" class="van-hairline--left van-password-input__item"><i
                                    data-v-985d0156="" style="visibility: hidden;"></i></li>
                            <li data-v-985d0156="" class="van-hairline--left van-password-input__item"><i
                                    data-v-985d0156="" style="visibility: hidden;"></i></li>
                        </ul>
                    </div>
                    <div data-v-985d0156="" class="van-number-keyboard">
                        <div class="van-number-keyboard__body">
                            <div class="van-number-keyboard__keys">
                                <div class="van-key__wrapper">
                                    <div role="button" tabindex="0" class="van-key">
                                        <font style="vertical-align: inherit;">
                                            <font style="vertical-align: inherit;">1</font>
                                        </font>
                                    </div>
                                </div>
                                <div class="van-key__wrapper">
                                    <div role="button" tabindex="0" class="van-key">
                                        <font style="vertical-align: inherit;">
                                            <font style="vertical-align: inherit;">2</font>
                                        </font>
                                    </div>
                                </div>
                                <div class="van-key__wrapper">
                                    <div role="button" tabindex="0" class="van-key">
                                        <font style="vertical-align: inherit;">
                                            <font style="vertical-align: inherit;">3</font>
                                        </font>
                                    </div>
                                </div>
                                <div class="van-key__wrapper">
                                    <div role="button" tabindex="0" class="van-key">
                                        <font style="vertical-align: inherit;">
                                            <font style="vertical-align: inherit;">4</font>
                                        </font>
                                    </div>
                                </div>
                                <div class="van-key__wrapper">
                                    <div role="button" tabindex="0" class="van-key">
                                        <font style="vertical-align: inherit;">
                                            <font style="vertical-align: inherit;">5</font>
                                        </font>
                                    </div>
                                </div>
                                <div class="van-key__wrapper">
                                    <div role="button" tabindex="0" class="van-key">
                                        <font style="vertical-align: inherit;">
                                            <font style="vertical-align: inherit;">6</font>
                                        </font>
                                    </div>
                                </div>
                                <div class="van-key__wrapper">
                                    <div role="button" tabindex="0" class="van-key">
                                        <font style="vertical-align: inherit;">
                                            <font style="vertical-align: inherit;">7</font>
                                        </font>
                                    </div>
                                </div>
                                <div class="van-key__wrapper">
                                    <div role="button" tabindex="0" class="van-key">
                                        <font style="vertical-align: inherit;">
                                            <font style="vertical-align: inherit;">8</font>
                                        </font>
                                    </div>
                                </div>
                                <div class="van-key__wrapper">
                                    <div role="button" tabindex="0" class="van-key">
                                        <font style="vertical-align: inherit;">
                                            <font style="vertical-align: inherit;">9</font>
                                        </font>
                                    </div>
                                </div>
                                <div class="van-key__wrapper">
                                    <div role="button" tabindex="0" class="van-key"><svg viewBox="0 0 30 24"
                                            xmlns="http://www.w3.org/2000/svg" class="van-key__collapse-icon">
                                            <path
                                                d="M25.877 12.843h-1.502c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.5c.187 0 .187 0 .187-.188v-1.511c0-.19 0-.191-.185-.191zM17.999 10.2c0 .188 0 .188.188.188h1.687c.188 0 .188 0 .188-.188V8.688c0-.187.004-.187-.186-.19h-1.69c-.187 0-.187 0-.187.19V10.2zm2.25-3.967h1.5c.188 0 .188 0 .188-.188v-1.7c0-.19 0-.19-.188-.19h-1.5c-.189 0-.189 0-.189.19v1.7c0 .188 0 .188.19.188zm2.063 4.157h3.563c.187 0 .187 0 .187-.189V4.346c0-.19.004-.19-.185-.19h-1.69c-.187 0-.187 0-.187.188v4.155h-1.688c-.187 0-.187 0-.187.189v1.514c0 .19 0 .19.187.19zM14.812 24l2.812-3.4H12l2.813 3.4zm-9-11.157H4.31c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.502c.187 0 .187 0 .187-.188v-1.511c0-.19.01-.191-.189-.191zm15.937 0H8.25c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h13.5c.188 0 .188 0 .188-.188v-1.511c0-.19 0-.191-.188-.191zm-11.438-2.454h1.5c.188 0 .188 0 .188-.188V8.688c0-.187 0-.187-.188-.189h-1.5c-.187 0-.187 0-.187.189V10.2c0 .188 0 .188.187.188zM27.94 0c.563 0 .917.21 1.313.567.518.466.748.757.748 1.51v14.92c0 .567-.188 1.134-.562 1.512-.376.378-.938.566-1.313.566H2.063c-.563 0-.938-.188-1.313-.566-.562-.378-.75-.945-.75-1.511V2.078C0 1.51.188.944.562.567.938.189 1.5 0 1.875 0zm-.062 2H2v14.92h25.877V2zM5.81 4.157c.19 0 .19 0 .19.189v1.762c-.003.126-.024.126-.188.126H4.249c-.126-.003-.126-.023-.126-.188v-1.7c-.187-.19 0-.19.188-.19zm10.5 2.077h1.503c.187 0 .187 0 .187-.188v-1.7c0-.19 0-.19-.187-.19h-1.502c-.188 0-.188.001-.188.19v1.7c0 .188 0 .188.188.188zM7.875 8.5c.187 0 .187.002.187.189V10.2c0 .188 0 .188-.187.188H4.249c-.126-.002-.126-.023-.126-.188V8.625c.003-.126.024-.126.188-.126zm7.875 0c.19.002.19.002.19.189v1.575c-.003.126-.024.126-.19.126h-1.563c-.126-.002-.126-.023-.126-.188V8.625c.002-.126.023-.126.189-.126zm-6-4.342c.187 0 .187 0 .187.189v1.7c0 .188 0 .188-.187.188H8.187c-.126-.003-.126-.023-.126-.188V4.283c.003-.126.024-.126.188-.126zm3.94 0c.185 0 .372 0 .372.189v1.762c-.002.126-.023.126-.187.126h-1.75C12 6.231 12 6.211 12 6.046v-1.7c0-.19.187-.19.187-.19z"
                                                fill="currentColor"></path>
                                        </svg></div>
                                </div>
                                <div class="van-key__wrapper">
                                    <div role="button" tabindex="0" class="van-key">
                                        <font style="vertical-align: inherit;">
                                            <font style="vertical-align: inherit;">0</font>
                                        </font>
                                    </div>
                                </div>
                                <div class="van-key__wrapper">
                                    <div role="button" tabindex="0" class="van-key van-key--delete"><svg
                                            viewBox="0 0 32 22" xmlns="http://www.w3.org/2000/svg"
                                            class="van-key__delete-icon">
                                            <path
                                                d="M28.016 0A3.991 3.991 0 0132 3.987v14.026c0 2.2-1.787 3.987-3.98 3.987H10.382c-.509 0-.996-.206-1.374-.585L.89 13.09C.33 12.62 0 11.84 0 11.006c0-.86.325-1.62.887-2.08L9.01.585A1.936 1.936 0 0110.383 0zm0 1.947H10.368L2.24 10.28c-.224.226-.312.432-.312.73 0 .287.094.51.312.729l8.128 8.333h17.648a2.041 2.041 0 002.037-2.04V3.987c0-1.127-.915-2.04-2.037-2.04zM23.028 6a.96.96 0 01.678.292.95.95 0 01-.003 1.377l-3.342 3.348 3.326 3.333c.189.188.292.43.292.679 0 .248-.103.49-.292.679a.96.96 0 01-.678.292.959.959 0 01-.677-.292L18.99 12.36l-3.343 3.345a.96.96 0 01-.677.292.96.96 0 01-.678-.292.962.962 0 01-.292-.68c0-.248.104-.49.292-.679l3.342-3.348-3.342-3.348A.963.963 0 0114 6.971c0-.248.104-.49.292-.679A.96.96 0 0114.97 6a.96.96 0 01.677.292l3.358 3.348 3.345-3.348A.96.96 0 0123.028 6z"
                                                fill="currentColor"></path>
                                        </svg></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="van-toast van-toast--middle van-toast--text" style="z-index: 2010; display: none;">
        <div class="van-toast__text">
            <font style="vertical-align: inherit;">
                <font style="vertical-align: inherit;">最低提款金额不能低于500</font>
            </font>
        </div>
    </div>
    <div class="van-overlay van-overlays" style="z-index: 2011;display:none;"></div>
    <div role="dialog" class="van-dialog van-dialogs" style="z-index: 2012;display:none;"
        aria-labelledby="Sua conta não está vinculada a um cartão bancário, por favor, faça-o primeiro">
        <div class="van-dialog__content van-dialog__content--isolated">
            <div class="van-dialog__message" style="white-space:unset">
                您的账户未绑定银行卡，请先绑定
            </div>
        </div>
        <div class="van-hairline--top van-dialog__footer Bind"><button
                class="van-button van-button--default van-button--large van-dialog__confirm">
                <div class="van-button__content"><span class="van-button__text">
                        好的
                    </span></div>
            </button>
        </div>
    </div>
</body>
<script>
$('.jymm').on('input propertychange', function(e) {

var text = $(this).val().replace(/[^\d]/g, "");

$(this).val(text)   

})
    var card = $("#card").val();
    if (card == 0) {
        $(".Bind").on("click", bindNow);
        $('.van-overlays').show()
        $('.van-dialogs').show()
        function bindNow() {
            window.location.href = '/index/account/card.html?type=1';
        }
    }
    $(document).on("click", ".all", function () {
        var all_money = "{$user_info.balance}";
        $("#money").val(all_money);
        var money = $("#money").val();
        if (money > 0) {
            var rate = "{$service_tx}";
            var actual_money = money * rate / 100;
            $("#actual_money").html(actual_money.toFixed(2));
        }
    });
    $("#money").blur(function () {
        var money = $("#money").val();
        if (money > 0) {
            var rate = "{$service_tx}";
            var actual_money = money * rate / 100;
            $("#actual_money").html(actual_money.toFixed(2));
        }
    });

    $('.pay_btn').click(function () {
        var money = $("input[ name='money']").val();
        var pass = $("input[ name='pass']").val();
        var bankselect = $("#bankselect").val();
        
        if (!pass) {
            layer.msg('请输入交易密码', function () {
                return false;
            });
            return false
        }
        if (pass.length != 6){
            layer.msg('交易密码为6位', function () {
                return false;
            });
            return false
        }
        if (!money) {
            layer.msg('请输入提现金额', function () {
                return false;
            });
            return false
        }
        $.ajax({
            url: "{:Url('confirm_withdrawal')}",
            type: "post",
            traditional: true,
            data: { money: money, pass: pass, type: 2,bank_code:bankselect },
            success: function (e) {
                layer.closeAll('loading');
                if (e.code === 1) {
                    layer.msg(e.msg, {
                        time: 2000,
                    });
                    setTimeout(()=>{
                        window.location.href = "{:Url('index/index')}";
                    },500)
                    
                } else {
                    layer.msg(e.msg, function () {
                        return false;
                    });
                }
            },
        });
    })
</script>
</html>